package com.whz.parameterized;

import com.google.common.collect.Lists;

import java.util.ArrayList;
import java.util.Collection;

/**
 * @Author: sinosoft
 * @Description:
 * @Date: Create in 19:53 2021/5/11
 * @Modified By:
 */
public class StackMainTest {
    public static void main(String[] args) {
        Stack1<Number> numStack = new Stack1<>();
        numStack.push(1);
        numStack.push(2);
        numStack.push(3);
        numStack.push(4);
        Collection<Object> objects = Lists.newArrayList();
        numStack.popAll(objects);
        System.out.println(objects);
    }
}
